package Homework5;

public class Milktea extends Softdrinks{
    private double milkcontent;

    public double getMilkcontent() {
        return milkcontent;
    }

    public void setMilkcontent(double milkcontent) {
        this.milkcontent = milkcontent;
    }

    public Milktea(String brand, double sugarcontent, double milkcontent){
        super(brand, sugarcontent);
        this.milkcontent = milkcontent;
    }
    @Override
    public String advertisement(){
        return "This product contains sugar and milk.";
    }
    @Override
    public String component(){
        return "sugarcontent: " + getSugarcontent() + " " +
                "gram milkcontent: " + getMilkcontent() + "% ";
    }

}
